package cn.yuanqiao.archive.danganzhengli.service.impl;

import cn.yuanqiao.archive.danganzhengli.domain.ImportArchiveLog;
import cn.yuanqiao.archive.danganzhengli.mapper.ImportArchiveLogMapper;
import cn.yuanqiao.archive.danganzhengli.service.IImportArchiveLogService;
import cn.yuanqiao.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImportArchiveLogServiceImpl implements IImportArchiveLogService {
    @Autowired
    private ImportArchiveLogMapper importArchiveLogMapper;
    @Override
    public int insertImportArchiveLog(ImportArchiveLog importArchiveLog) {
        importArchiveLog.setTenantCode(SecurityUtils.getTenantCode());
        return importArchiveLogMapper.insertImportArchiveLog(importArchiveLog);
    }

    @Override
    public List<ImportArchiveLog> getImportArchiveLogList(ImportArchiveLog importArchiveLog) {
        return importArchiveLogMapper.getImportArchiveLogList(importArchiveLog);
    }

    @Override
    public ImportArchiveLog getImportArchiveLogById(Long id) {
        return importArchiveLogMapper.getImportArchiveLogById(id);
    }
}
